<?php

namespace app\validate;

use think\Validate;

class AdminBuilding extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'school_id|学校' => 'require|integer',
        'name|教学楼名称' => 'require|max:50'
    ];
}